package xyz.hujf.product.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.hujf.product.service.ProductService;
import xyz.hujf.productvo.model.Product;

import java.util.List;

/**
 * @author Hujf
 * @title: ProductController
 * @date 2021/4/1510:58
 * @description: TODO
 */
@RestController
public class ProductController {

    @Autowired
    private ProductService productService;
    @GetMapping("/getAll")
    public List<Product> getAll(){
       return productService.getAll();
    }

}
